import QtQuick 2.2
import QtQuick.Window 2.1
import QtQuick.Controls 1.2

Window {
    visible: true
    width: 360
    height: 360

    Grid{
        id: conParamPanel
        anchors.left: parent.left;
        anchors.right: parent.right
        columns: 2;
        rows: 3;

        Text{ text: qsTr("Адрес:"); }
        TextField {
            text: connectionParamModel.host;
            onTextChanged: parametrsController.setHost(text);
        }

        Text{ text: qsTr("Логин:"); }
        TextField {
            text: connectionParamModel.login;
            onTextChanged: parametrsController.setLogin(text);
        }

        Text{ text: qsTr("Пароль:"); }
        TextField {
            text: connectionParamModel.password;
            onTextChanged: parametrsController.setPassword(text);
        }
    }

    Button {
        id: exitButton
        anchors.right: parent.right;
        text: qsTr("Завершить");
        onClicked: Qt.quit();
    }
}
